package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zds
 * @since 2021-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Shift对象", description="")
public class Shift implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "所属车站")
    @TableField("station_name")
    private String stationName;

    @ApiModelProperty(value = "线路")
    @TableField("rout")
    private String rout;

    @ApiModelProperty(value = "班次号")
    @TableField("shift_num")
    private String shiftNum;

    @ApiModelProperty(value = "发车车牌号")
    @TableField("bus_num")
    private String busNum;

    @ApiModelProperty(value = "站务公司")
    @TableField("service_com")
    private String serviceCom;

    @ApiModelProperty(value = "座位数")
    @TableField("seat_count")
    private Long seatCount;

    @ApiModelProperty(value = "发班时间")
    @TableField("bus_start")
    private LocalDateTime busStart;

    @ApiModelProperty(value = "开始检票时间")
    @TableField("check_time")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "停止检票时间")
    @TableField("stop_time")
    private LocalDateTime stopTime;

    @ApiModelProperty(value = "是否密集班")
    @TableField("work_type")
    private String workType;

    @ApiModelProperty(value = "进站口")
    @TableField("station_gate")
    private String stationGate;

    @ApiModelProperty(value = "检票口")
    @TableField("ticket_gate")
    private String ticketGate;

    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "是否已删除，默认0，0未删除，1已删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "设备序列号")
    @TableField("device_code")
    private String deviceCode;


}
